package com.example.smart.ui.activity.course

import com.example.lib.extend.setOnDoubleClickListener
import com.example.lib.utils.statusbar.StatusBarUtils
import com.example.smart.R
import com.example.smart.base.ui.activity.BaseActivity
import com.example.smart.databinding.ActivityCourseDetailsBinding
import com.example.smart.utils.DisplayUtils

class CourseDetailsActivity : BaseActivity<ActivityCourseDetailsBinding>() {

    override fun layoutID() = R.layout.activity_course_details

    override fun initView() {
        StatusBarUtils.setStateAndNavigationBar(this@CourseDetailsActivity,
            statusBarColor = com.example.lib.R.color.translate)
        binding.Radio1.isChecked = true
    }

    override fun initListener() {
        binding.Exit.setOnDoubleClickListener {
            finish()
        }

        binding.Image.setOnDoubleClickListener {
            DisplayUtils.toCourseDone1(this@CourseDetailsActivity)
        }

        binding.Lin1.setOnDoubleClickListener {
            DisplayUtils.toCourseDone1(this@CourseDetailsActivity)
        }
    }
}